<!--排列三-直选 -->
<template>
	<view>
		<!-- tab -->
		<su-sticky>
			<su-tabs :activeStyle="{color:'red'}" :lineWidth="60" :list="tabMaps" :scrollable="false"
				:current="state.currentTab" @change="onTabsChange">
			</su-tabs>
		</su-sticky>
		<uni-collapse>
			<uni-collapse-item titleBorder="none">
				<template v-slot:title>
					<view class="collapse-item">
						<view class="collapse-item-title">
							<text>第25089期 截止时间：2025-04-09 20:55:00</text>
							<text class="cicon-drop-down" style="font-size: 25px;" />
						</view>
					</view>
				</template>
				<view class="content">
					<view class="text">折叠内容主体，可自定义内容及样式</view>
				<view class="text">折叠内容主体，可自定义内容及样式</view>
				<view class="text">折叠内容主体，可自定义内容及样式</view>
				</view>
			</uni-collapse-item>
		</uni-collapse>
		
		<zhixuan-dingwei/>
		
	</view>
</template>

<script setup>
	import zhixuanDingwei from './zhixuan-dingwei.vue';
	import {
		reactive
	} from 'vue';
	const props = defineProps({
		item: {
			type: Object,
			default () {},
		},
	});
	const state = reactive({
		currentTab: 0,
	});
	const tabMaps = [{
			name: '定位复式',
			value: 0,
		},
		{
			name: '组合复式',
			value: 1,
		},
		{
			name: '和值',
			value: 2,
		}, {
			name: '组合胆拖',
			value: 3,
		}, {
			name: '跨度复式',
			value: 4,
		}
	];
	// 切换选项卡
	function onTabsChange(e) {
		state.currentTab = e.index;
		console.log(e.index)
	}
</script>

<style lang="scss" scoped>
	.collapse-item-title {
		width: 100vw;
		height: 29px;
		line-height: 29px;
		background: #fbe5e5;
		padding-left: 15px;
		padding-right: 15px;
		font-size: 13px;
		display: flex;
		flex-flow: row nowrap;
		justify-content: space-around;
	}
</style>